import { EquipmentService } from './../../services/equipment';
import { Component, OnInit ,Input} from '@angular/core';

@Component({
  selector: 'ree-binded',
  templateUrl: './binded.component.html',
  styleUrls: ['./binded.component.scss']
})
export class BindedComponent implements OnInit {

  @Input() data;

  constructor(    private equipmentService: EquipmentService,
  ) { }

  devicesList;

  ngOnInit() {
    console.log(this.data)
    this.getdevicesList(0);
  }
  getdevicesList(activeTabIndex) {
    this.equipmentService.getdevicesList(activeTabIndex).then(data => {
      this.devicesList = data;
    })
  }
}
